Makes the selected activity the current activity, using the unique activity id.
Parent Type: LearningSession
Namespace: Microsoft.LearningComponents
Assembly: Microsoft.LearningComponents.dll
| C# |
|
public virtual void MoveToActivity ( ) |
activityId
The unique identifier for the selected activity.
| Exception type | Condition |
| SequencingException | Thrown if the activityId cannot become the current activity to restrictions in the sequencing rules of the package. |
| InvalidOperationException | Thrown if the current state of the session does not allow moving to the selected activity or if the activity does not exist in the package. |
Whenever possible, use this method, which takes a long value instead of the activity key, as it will improve performance.
In the process of navigation, the current activity may be exited before the navigation command is able to complete. If the navigation command then throws a SequencingException, the state of the session is undefined. The current activity may have changed during this process.